/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.web.portlet.description.impl;

import java.util.ArrayList;
import java.util.List;

import com.genia.toolbox.basics.i18n.I18nMessage;
import com.genia.toolbox.web.portlet.description.PortletDescription;
import com.genia.toolbox.web.portlet.description.VariableDescription;

/**
 * the base implementation of the <code>PortletDescription</code>.
 */
public abstract class AbstractPortletDescription
    implements PortletDescription
{

  /**
   * the description of the portlet.
   */
  private I18nMessage description;

  /**
   * the name of the portlet.
   */
  private String name;

  /**
   * the list of the descriptions of the attributes of the portlet.
   */
  private List<VariableDescription> attributeDescription = new ArrayList<VariableDescription>();



  /**
   * getter for the attributeDescription property.
   * 
   * @return the attributeDescription
   */
  public List<VariableDescription> getAttributeDescription()
  {
    return attributeDescription;
  }



  /**
   * getter for the description property.
   * 
   * @return the description
   */
  public I18nMessage getDescription()
  {
    return description;
  }



  /**
   * getter for the name property.
   * 
   * @return the name
   */
  public String getName()
  {
    return name;
  }



  /**
   * setter for the attributeDescription property.
   * 
   * @param attributeDescription
   *          the attributeDescription to set
   */
  public void setAttributeDescription(final List<VariableDescription> attributeDescription)
  {
    this.attributeDescription = attributeDescription;
  }



  /**
   * setter for the description property.
   * 
   * @param description
   *          the description to set
   */
  public void setDescription(final I18nMessage description)
  {
    this.description = description;
  }



  /**
   * setter for the name property.
   * 
   * @param name
   *          the name to set
   */
  public void setName(final String name)
  {
    this.name = name;
  }

}
